import Vue from 'vue'
import Router from 'vue-router'
import test from '@/components/test'
import pol from '@/components/pol'
import login from '@/components/login'
import allgoods from '@/components/allgoods'
import show from '@/components/show'
import allorder from '@/components/allorder'
import register from '@/components/register'
import alluserss from '@/components/alluserss'
import js from '@/components/js'
import update from '@/components/update'
import mdlogin from '@/components/mdlogin'
import allgoodsinfo from '@/components/allgoodsinfo'
import comment from '@/components/comment'
import allcomment from '@/components/allcomment'

Vue.use(Router);


var routes = [
        {
          path:'/',
          name:'test',
          component:test
        },
          {
          path:'/pol',
          name:'pol',
          component:pol
        },
        {
          path:'/login',
          name:'login',
          component:login
        },
          {
          path:'/allgoods',
          name:'allgoods',
          component:allgoods
        },
            {
          path:'/show',
          name:'show',
          component:show
        },
      {
          path:'/allorder',
          name:'allorder',
          component:allorder
        },
        {
          path:'/register',
          name:'register',
          component:register
        },
        {
          path:'/alluserss',
          name:'alluserss',
          component:alluserss
        },
        {
          path:'/js',
          name:'js',
          component:js
        },
          {
          path:'/update',
          name:'update',
          component:update
        },
            {
          path:'/mdlogin',
          name:'mdlogin',
          component:mdlogin
        },
        {
          path:'/allgoodsinfo',
          name:'allgoodsinfo',
          component:allgoodsinfo
        },
          {
          path:'/comment',
          name:'comment',
          component:comment
        },
            {
          path:'/allcomment',
          name:'allcomment',
          component:allcomment
        },


]

export default new Router({
  routes:routes,
  mode:'history'   /*hash*/
})
